package cn.wenhaha.app.config;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.file.FileReader;



import java.io.File;

public class LaunchCheck  {

    private static   final String path=System.getProperty("user.dir")+"/application.yml";


    public static void check()  {

        yamlCheck();
    }



    private static void siteCheck(){
    }

    // 数据库配置文件生成
    private static void yamlCheck(){
        if (!FileUtil.exist(path)){
            File touch = FileUtil.touch(path);
            FileReader fileReader = new FileReader("config.txt");
            FileUtil.appendString(fileReader.readString(),touch, "utf-8");
        }
    }

}
